package cn.maka.dao;

import cn.maka.domain.User;

import java.util.List;
import java.util.Map;

public interface UserDAO {
    List<User> findAll();
    User findUserByUsernameAndPassword(String username, String password);
    User findUserById(int id);
    void add(User user);
    void del(int id);
    void update(User user);

    int findTotalCount(Map<String, String[]> condition);

    List<User> findByPage(int start, int intRows, Map<String, String[]> condition);
}
